﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true"
    CodeFile="UserEdit.aspx.cs" Inherits="public_html_NewSite_CMSV2_UserEdit" Title="Ret din profil" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h3>
        Rediger din profil</h3>
    <cc1:TabContainer ID="userContainer" runat="server" Width="700px" 
        ActiveTabIndex="1">
        <cc1:TabPanel ID="TabUser" runat="server" HeaderText="Dine Informationer">
            <ContentTemplate>
                <table border="0" width="600px">
                    <tr>
                        <td>
                            E-mail adresse
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
<!--                    <tr>
                        <td>
                            Kodeord
                        </td>
                        <td>
                            <asp:TextBox ID="txtKode" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr> -->
                    <tr>
                        <td valign="top">
                            Spiller nu
                        </td>
                        <td>
                            <asp:TextBox ID="txtSpiller" TextMode="MultiLine" Height="150px" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            Om mig:
                        </td>
                        <td>
                            <asp:TextBox ID="txtOm" TextMode="MultiLine" Height="150px" runat="server" Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="btmUpdate" runat="server" Text="Opdater min profil" OnClick="BtmUpdate_Click" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="TabChangePassword" runat="server" HeaderText="Skift password">
            <ContentTemplate>
                <h2>
                    Skift password:</h2>
                <p>
                    <asp:Label runat="server" ID="lblCurentPassword" Text="Nuværende adgangskode:" AssociatedControlID="tbCurrentPassword" />
                    <br />
                    <asp:TextBox runat="server" ID="tbCurrentPassword" TextMode="Password" ValidationGroup="ChangePassword"
                        Width="100%" />
                    <asp:RequiredFieldValidator runat="server" ID="rfvCurrentPassword" ControlToValidate="tbCurrentPassword"
                        Display="Dynamic" ErrorMessage="<br />Indtast venligst nuværende adgangskode."
                        ValidationGroup="ChangePassword" />
                </p>
                <p>
                    <asp:Label runat="server" ID="lblNewPassword" Text="Ny adgangskode:" AssociatedControlID="tbNewPassword" />
                    <br />
                    <asp:TextBox runat="server" ID="tbNewPassword" TextMode="Password" ValidationGroup="ChangePassword"
                        Width="100%" />
                    <asp:RequiredFieldValidator runat="server" ID="rfvNewPassword" ControlToValidate="tbNewPassword"
                        Display="Dynamic" ErrorMessage="<br />Indtast venligst ny adgangskode." ValidationGroup="ChangePassword" />
                </p>
                <p>
                    <asp:Label runat="server" ID="lblRepeatNewPassword" Text="Gentag ny adgangskode:"
                        AssociatedControlID="tbRepeatNewPassword" />
                    <br />
                    <asp:TextBox runat="server" ID="tbRepeatNewPassword" TextMode="Password" ValidationGroup="ChangePassword"
                        Width="100%" />
                    <asp:RequiredFieldValidator runat="server" ID="rfvRepeatNewPassword" ControlToValidate="tbRepeatNewPassword"
                        Display="Dynamic" ErrorMessage="<br />Gentag venligst ny adgangskode." ValidationGroup="ChangePassword" />
                    <asp:CompareValidator runat="server" ID="cvRepeatNewPassword" ControlToCompare="tbNewPassword"
                        ControlToValidate="tbRepeatNewPassword" ValidationGroup="ChangePassword"
                        Display="Dynamic" 
                        ErrorMessage="<br />Gentaget ny adgangskode er ikke ens" />
                </p>
                <p>
                    <div style="text-align: right">
                        <asp:Button runat="server" ValidationGroup="ChangePassword" ID="btnChangePassword"
                            Text="Skift adgangskode" onclick="btnChangePassword_Click" />
                    </div>
                    <p>
                    </p>
                </p>
            </ContentTemplate>
        </cc1:TabPanel>
    </cc1:TabContainer>
</asp:Content>
